package com.gs.disk.dto.admin;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;
import java.util.Set;

@Data
@ApiModel(description = "用户")
public class UserDto {

	@ApiModelProperty("用户id,唯一id")
	private Long id;

	@ApiModelProperty("用户登陆账号：例如:admin")
	private String name;

	@ApiModelProperty("密码,需要加密")
	@JSONField(serialize = false)
	private String password;

	@ApiModelProperty("邮箱")
	private String email;

	@ApiModelProperty("角色名")
	private List<String> roleNameList;

	@ApiModelProperty("昵称,显示的名字")
	private String nickName;

	@ApiModelProperty("用户创建时间")
	private Date created;

	@ApiModelProperty("用户头像")
	private Long headImgId;

	@ApiModelProperty("token")
	@JSONField(serialize = false)
	private String token;

	@ApiModelProperty("用户权限集合")
	private Set<String> permissions;

	@ApiModelProperty("用户菜单集合")
	private List<String> menus;
}